import {connect} from 'react-redux';
import {Stoplight} from './stoplight';

const mapStateToProps = state => {
    return {
        goColor: state == 'GO' ? 'green' : 'white',
        cautionColor: state == 'CAUTION' ? 'yellow' : 'white',
        stopColor: state == 'STOP' ? 'red' : 'white'
    }

};